#pragma once

#include "Entity.h"
#include "ObjectManager.h"
#include "Turret.h"
#include "ResourceManager.h"

class Tank : public Entity
{
private:
	ObjectManager* om;
	Turret* m_turret;
public:
	Tank(int x=0, int y=0, double m_orientation=0.0, ObjectManager* _om=NULL)
		: Entity(TYPE_TANK, x, y, m_orientation, RES_TANK)
	{
		om = _om;
		m_turret = NULL;
	}
	~Tank();

	void ConstructTurret(const double& m_orientation,
		const char* pathToImg)
	{
		if(m_turret)
			delete m_turret;

		m_turret = new Turret(centerX,centerY,m_orientation,pathToImg);
	}

	bool Fire()
	{
		

	}
};